ostbuild: Add 'tag' concept to manifest, improve git mirroring
authorColin Walters <walters@verbum.org>
Thu, 24 May 2012 23:54:36 +0000 (19:54 -0400)
committerColin Walters <walters@verbum.org>
Thu, 24 May 2012 23:54:36 +0000 (19:54 -0400)
commitf7bbf41132cfd29a919e610b0a438c5fb34abc69
treeff1aba583ce42525280a2ddb7d5971ac0fa213a2
parent0d1ba45c7323add44b72ebc64f70b628ee819177
ostbuild: Add 'tag' concept to manifest, improve git mirroring

We should explicitly distinguish between the case where we have a git
branch we're following, versus an immutable tag.  In the latter case,
we can entirely avoid running 'git fetch' for it once we have it.
This is a noticeable speedup in our current scenario of pinning WebKit
to a tag.

The git mirroring code now has a --fetch-skip-secs=X option which
allows us to basically run it in a loop, without hitting remote git
repositories too often.
src/ostbuild/pyostbuild/builtin_build.py
src/ostbuild/pyostbuild/builtin_git_mirror.py
src/ostbuild/pyostbuild/builtin_resolve.py
src/ostbuild/pyostbuild/builtin_source_diff.py
src/ostbuild/pyostbuild/vcs.py